package com.zz.parkingsystem.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 营收统计表
 * @TableName t_revenue_count
 */
@Data
public class RevenueCount implements Serializable {
    /**
     * 营收统计表编号
     */
    private Integer rcId;

    /**
     * 营收金额
     */
    private BigDecimal rcAmount;

    /**
     * 用户增长
     */
    private Integer rcUserGrowth;

    /**
     * 退款订单数量
     */
    private Integer rcRefundOrders;

    /**
     * 退款金额
     */
    private BigDecimal rcRefundAmount;

    /**
     * 异常订单数量
     */
    private Integer rcExcorder;

    /**
     * 异常金额
     */
    private BigDecimal rcExcamount;

    /**
     * 订单数量
     */
    private Integer rcOrdernum;

    /**
     * 日期
     */
    private Date createdTime;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        RevenueCount other = (RevenueCount) that;
        return (this.getRcId() == null ? other.getRcId() == null : this.getRcId().equals(other.getRcId()))
            && (this.getRcAmount() == null ? other.getRcAmount() == null : this.getRcAmount().equals(other.getRcAmount()))
            && (this.getRcUserGrowth() == null ? other.getRcUserGrowth() == null : this.getRcUserGrowth().equals(other.getRcUserGrowth()))
            && (this.getRcRefundOrders() == null ? other.getRcRefundOrders() == null : this.getRcRefundOrders().equals(other.getRcRefundOrders()))
            && (this.getRcRefundAmount() == null ? other.getRcRefundAmount() == null : this.getRcRefundAmount().equals(other.getRcRefundAmount()))
            && (this.getRcExcorder() == null ? other.getRcExcorder() == null : this.getRcExcorder().equals(other.getRcExcorder()))
            && (this.getRcExcamount() == null ? other.getRcExcamount() == null : this.getRcExcamount().equals(other.getRcExcamount()))
            && (this.getRcOrdernum() == null ? other.getRcOrdernum() == null : this.getRcOrdernum().equals(other.getRcOrdernum()))
            && (this.getCreatedTime() == null ? other.getCreatedTime() == null : this.getCreatedTime().equals(other.getCreatedTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRcId() == null) ? 0 : getRcId().hashCode());
        result = prime * result + ((getRcAmount() == null) ? 0 : getRcAmount().hashCode());
        result = prime * result + ((getRcUserGrowth() == null) ? 0 : getRcUserGrowth().hashCode());
        result = prime * result + ((getRcRefundOrders() == null) ? 0 : getRcRefundOrders().hashCode());
        result = prime * result + ((getRcRefundAmount() == null) ? 0 : getRcRefundAmount().hashCode());
        result = prime * result + ((getRcExcorder() == null) ? 0 : getRcExcorder().hashCode());
        result = prime * result + ((getRcExcamount() == null) ? 0 : getRcExcamount().hashCode());
        result = prime * result + ((getRcOrdernum() == null) ? 0 : getRcOrdernum().hashCode());
        result = prime * result + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", rcId=").append(rcId);
        sb.append(", rcAmount=").append(rcAmount);
        sb.append(", rcUserGrowth=").append(rcUserGrowth);
        sb.append(", rcRefundOrders=").append(rcRefundOrders);
        sb.append(", rcRefundAmount=").append(rcRefundAmount);
        sb.append(", rcExcorder=").append(rcExcorder);
        sb.append(", rcExcamount=").append(rcExcamount);
        sb.append(", rcOrdernum=").append(rcOrdernum);
        sb.append(", createdTime=").append(createdTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}